from studio.models import *
from django.conf.urls.defaults import *
from django.views.generic import ListView,DetailView
from studio.views import *

urlpatterns = patterns('',
    url(r'^$', ListView.as_view(model=PhotoMain), name='main'),
    url(r'^female/$', ListView.as_view(model=WomenGoodClass,template_name = "studio/goodclass_list.html"), name='female'),
    url(r'^male/$', ListView.as_view(model=MenGoodClass,template_name = "studio/goodclass_list.html"), name='male'),
    url(r'^decor/$', ListView.as_view(model=DecorGoodClass,template_name = "studio/goodclass_list.html"), name='decor'),
    url(r'^cat_men/(\d+)/$', CategoryMenView.as_view(), name='cat_men'),
    url(r'^cat_women/(\d+)/$', CategoryWomenView.as_view(), name='cat_women'),
    url(r'^cat_decor/(\d+)/$', CategoryDecorView.as_view(), name='cat_decor'),
    url(r'^collections/$', ListView.as_view(model=Collection), name='collections'),
    url(r'^news/$', ListView.as_view(model=New), name='news_main'),
    url(r'^news/(?P<pk>\d+)/$', DetailView.as_view(model=New),name='news'),
    url(r'^markitup/', include('markitup.urls')),
    #url(r'^entry/(?P<uid>\d*)/$', 'entry'),
    #url(r'^blog/(?P<url>[-\w]+)/$', 'blog'),
    #url(r'^tag/(?P<uid>\d*)/$', 'tag'),
    )
  